package com.ship.dispatch.service;

import com.ship.common.business.service.BaseService;
import com.ship.common.core.base.Page;
import com.ship.common.core.web.domain.JsonResult;
import com.ship.dispatch.bean.TzFuelDelivery;

import java.io.IOException;
import java.net.MalformedURLException;
import java.util.Date;

/**
* @author zhangyh
* @description 针对表【tz_fuel_delivery(燃油台账交还船信息)】的数据库操作Service
* @createDate 2024-06-17 11:27:11
*/
public interface TzFuelDeliveryService extends BaseService<TzFuelDelivery> {
    /**
     * 交还船数据同步
     * @param dto
     */
    Long dataTransfer(TzFuelDelivery dto);

    /**
     * 分页
     * @param dto
     * @return
     */
    JsonResult<Page<TzFuelDelivery>> getPage(TzFuelDelivery dto);

    /**
     * 导出
     * @param dto
     * @return
     */
    JsonResult dataExport(TzFuelDelivery dto) throws IOException;

    /**
     * 加油记录数据同步交还船记录
     * @param fuelTime
     * @param shipName
     */
    void fuelUpdateDeliveryInfo(Date fuelTime, String shipName);
}
